

package com.maoshi.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.maoshi.shop.bean.app.param.UserRegisterParam;
import com.maoshi.shop.bean.model.User;
import com.maoshi.shop.bean.vo.UserVO;
import com.maoshi.shop.common.util.PageParam;

/**
 *
 * @author lgh on 2018/09/11.
 */
public interface UserService extends IService<User> {

    User getUserByUserId(String userId);

    void setUserLevelBylevelId(Integer level);

    void setUserLevelByGrowth(Integer level, Integer minNeedGrowth, Integer maxNeedGrowth);

    void validate(UserRegisterParam userRegisterParam, String checkRegisterSmsFlag);

    IPage<User> getUserPage(PageParam<User> page, User user);

    //合并代码开始
    void insert(User user);

    void updateStatusByUserId(String userId, Integer status);

    User getByUserId(String userId);
    //代码合并结束
}
